import AppNode from "../core/app_node";
import { EleSpan } from "../core/data_ext";
import { RegClass } from "../core/serialize";
import RoomItem from "./room_item";
import SocketCtrl from "./socket_ctrl";
import UserItem from "./user_item";
@RegClass("PageHome")
export default class PageHome extends AppNode {
    userItem: UserItem = null;
    socketCtrl: SocketCtrl = null;
    roomItem: RoomItem = null;
    lbSocketState: EleSpan = null;

    onClickTest(id) {
        this[`test${id}`]();
    }

    test1(){
        this.userItem.onClickReg();
        this.roomItem.onClickNewRoom();
        this.roomItem.ebRoomId.value = "1";
        this.roomItem.onClickEnterRoom();
    }
};